﻿<Window x:Class="VNet.VisiSuite.Controls.SaveChangesDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:ig="http://schemas.infragistics.com/xaml"
        Width="300" Height="150"  ResizeMode="NoResize" 
        WindowStartupLocation="CenterScreen" Topmost="True"
        Icon="./Assets/Icons/WorkRite.ico"
        >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Assets/Themes/Metro/Styles.Shared.xaml"/>
                <ResourceDictionary Source="/Assets/Themes/Metro/Styles.WPF.xaml"/>
                <ResourceDictionary Source="/Assets/Themes/Metro/Theme.Colors.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style x:Key="BtnStyle" TargetType="Button">
                <Setter Property="Margin" Value="5 5"/>
                <Setter Property="Width" Value="75"/>
                <Setter Property="ContentTemplate">
                    <Setter.Value>
                        <DataTemplate>
                            <TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" TextAlignment="Center"/>
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" x:Name="_messageTbk" Margin="5" TextWrapping="Wrap"/>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button x:Name="discardBtn" Style="{StaticResource BtnStyle}" Content="Discard Changes" Click="DiscardBtn_Click"/>
            <Button x:Name="saveBtn"    Style="{StaticResource BtnStyle}" Content="Save Changes"    Click="SaveBtn_Click"/>
            <Button x:Name="resumeBtn"  Style="{StaticResource BtnStyle}"  Content="Resume Editing"  Click="ResumeBtn_Click"/>
        </StackPanel>
    </Grid>
</Window>
